package com.simplemall.micro.serv.page.client.hystrix;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import com.simplemall.micro.serv.common.bean.telbook.TelBook;
import com.simplemall.micro.serv.common.bean.telbook.TelBookInfo;
import com.simplemall.micro.serv.common.constant.SystemConstants;
import com.simplemall.micro.serv.page.client.TelBookFeignClient;

@Component
public class TelBookFeignClientHystrix implements TelBookFeignClient{

	@Override
	public List<TelBook> getTelBookById(@PathVariable("userid") String userid) {
		// TODO Auto-generated method stub
		return new ArrayList<TelBook>();
	}

	@Override
	public String createTelBook(@RequestParam("bookName") String bookName, @RequestParam("remark") String remark, @RequestParam("userid") String userid) {
		// TODO Auto-generated method stub
		return SystemConstants.Code.FAIL;
	}

	@Override
	public List<TelBookInfo> telBookInfo(@PathVariable("telBookId") String telBookId) {
		// TODO Auto-generated method stub
		return new ArrayList<TelBookInfo>();
	}

	@Override
	public String insertTelBookInfo(@RequestParam("telBookStr") String telBookStr) {
		// TODO Auto-generated method stub
		return SystemConstants.Code.FAIL;
	}

	@Override
	public TelBookInfo getTelBookInfoByFuserid(String telBookId, String fuserid) {
		// TODO Auto-generated method stub
		return new TelBookInfo();
	}

	@Override
	public String updateTelBookInfo(String telBookInfoStr) {
		// TODO Auto-generated method stub
		return SystemConstants.Code.FAIL;
	}

	@Override
	public String deleteTelBookInfo(String id) {
		// TODO Auto-generated method stub
		return SystemConstants.Code.FAIL;
	}

}
